﻿
//设备状态
function getDeviceState(state) {
    if (state === 1) {
        return "正常";
    }
    if (state === 2) {
        return "维修中";
    }
    if (state === 3) {
        return "已报废";
    }
    if (state === 4) {
        return "已外借";
    }
    if (state === 5) {
        return "已损坏";
    }
    if (state === 6) {
        return "已删除";
    }
    if (state === 7) {
        return "已转出";
    }
    return '';
}